/**
 * 
 */
package it.unical.canonaco.rende.igpe.game.cbv.guilayer.components;

import java.awt.Point;

import it.unical.canonaco.rende.igpe.game.cbv.logiclayer.engine.component.pawn.GenericPawn;

import javax.swing.ImageIcon;

/**
 * @author Massimo Canonaco
 *
 */
public class GUIGenericPawn 
{
	/**It's the avatar which represents the pawn.*/
	private ImageIcon avatar;
	
	/**It's the opacity value for the avatar image.*/
	private float opacity;
	
	/**It's a boolean value.*/
	private boolean aBoolean;
	
	/**It's the logic pawn from the engine package. */
	private GenericPawn logicPart;
	
	@Deprecated
	/**It's the point on the "panel". */
	private Point point;
	
	@Override
	public String toString() 
	{
		return logicPart.getName();
	}

	/**
	 * @return the avatar
	 */
	public ImageIcon getAvatar() {
		return avatar;
	}

	/**
	 * @param avatar the avatar to set
	 */
	public void setAvatar(ImageIcon avatar) {
		this.avatar = avatar;
	}

	/**
	 * @return the opacity
	 */
	public float getOpacity() {
		return opacity;
	}

	/**
	 * @param opacity the opacity to set
	 */
	public void setOpacity(float opacity) {
		this.opacity = opacity;
	}

	/**
	 * @return the aBoolean
	 */
	public boolean isaBoolean() {
		return aBoolean;
	}

	/**
	 * @param aBoolean the aBoolean to set
	 */
	public void setaBoolean(boolean aBoolean) {
		this.aBoolean = aBoolean;
	}

	/**
	 * @return the logicPart
	 */
	public GenericPawn getLogicPart() {
		return logicPart;
	}

	/**
	 * @param logicPart the logicPart to set
	 */
	public void setLogicPart(GenericPawn logicPart) {
		this.logicPart = logicPart;
	}

	/**
	 * @return the point
	 */
	public Point getPoint() {
		return point;
	}

	/**
	 * @param point the point to set
	 */
	public void setPoint(Point point) {
		this.point = point;
	}
}
